﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="list.aspx.vb" Inherits="kitchenCompetition.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
  <asp:ImageButton runat="server" Height="35px" PostBackUrl="~/rss.aspx" ImageUrl="~/Images/rss-icon.jpg" 
        Width="40px">
        </asp:ImageButton>
<asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" 
    DataKeyNames="UserId" DataSourceID="DSAccess">
    <Columns>
      
        <asp:BoundField DataField="FullName" HeaderText="FullName" 
            SortExpression="FullName" />
        <asp:BoundField DataField="EmailAdd" HeaderText="EmailAdd" 
            SortExpression="EmailAdd" />
            <asp:TemplateField>
            <ItemTemplate>
                <asp:Image ID="Image1" Height="40px" Width="40px" ImageUrl=<%# Eval("Pic") %> runat="server" />
            </ItemTemplate>
        </asp:TemplateField>
            <asp:HyperLinkField Text="View" DataNavigateUrlFields="UserId"  datanavigateurlformatstring="~/detail.aspx?UserId={0}" />
  
        
  
    </Columns>
</asp:GridView>
<asp:AccessDataSource ID="DSAccess" runat="server" 
    DataFile="~/App_Data/KitchenCompition.mdb" 
    SelectCommand="SELECT [FullName], [EmailAdd], [Password], [EntryDate], [FamilyId], [UserId],[Pic] FROM [UserInfo]">
</asp:AccessDataSource>
</asp:Content>
